import { get, post } from "./request.js";
// login.vue
export const identifyCode = (data) => post("admin/get_verify", data);
export const login = (data) => post("admin/login", data);
export const getMenuDate = (data) => post("admin/menu/list", data);
export const signOut = (data) => post("admin/logout", data);

//basic
//vehicle
export const truckList = (data) => post("truck/list", data);
export const truckNumber = (data) => post("truck/list", data);
export const truckDelete = (data) => post("truck/delete", data);
export const addTruck = (data) => post("truck/add", data);
export const editTruck = (data) => post("truck/edit", data);
export const uploadTruck = (data) => post("imports/truck-upload", data);
//driver司机
export const getDriverList = (data) => post("admin/driver/list", data);
export const addDriver = (data) => post("admin/driver/add", data);
export const editDriver = (data) => post("admin/driver/edit", data);
export const deleteDriver = (data) => post("admin/driver/del", data);
export const uploadDriver = (data) =>
  post("report/import/importing_driver", data);
export const getAllDc = (data) => post("admin/dept/get_all_dc", data);
export const getTruck = (data) => post("admin/truck/save", data);
export const addTruckA = (data) => post("admin/truck/add", data);
export const editTruckA = (data) => post("admin/truck/edit", data);
export const deleteTruck = (data) => post("admin/truck/del", data);
export const addDriverMateriaUpload = (data) =>
  post("admin/driver/driver_material_upload", data);

// new
export const InfoList = (data) => post("admin/news/list", data);
export const addEditInfo = (data) => post("admin/news/add", data);
export const EditInfo = (data) => post("admin/news/edit", data);
export const deleteInfo = (data) => post("admin/news/del", data);
export const pushInfo = (data) => post("admin/news/send_push_msg", data);

//violation
export const violationList = (data) => post("admin/violation/list", data);
export const addViolation = (data) => post("admin/violation/add", data);
export const editViolation = (data) => post("admin/violation/edit", data);
export const deleteViolation = (data) => post("admin/violation/del", data);
export const ViolationTruckList = (data) =>
  post("admin/violation/truck_list", data);
export const ViolationDriverList = (data) =>
  post("admin/violation/driver_list", data);
//info
export const infoDept = (data) => post("admin/warehouse/list", data);
export const infoupadet = (data) => post("admin/warehouse/save", data);

//
export const accountNemberList = (data) => post("admin/account/get", data);
export const accountNemberSet = (data) => post("admin/account/set", data);

//system
//personal
export const personalCenter = (data) => post("account/personal-center", data);
export const updatePersonal = (data) => post("account/update", data);
//framework
export const deptList = (data) => post("admin/dept/list", data);
export const deptAdd = (data) => post("admin/dept/add", data);
export const deptEdit = (data) => post("admin/dept/edit", data);
export const deptDelete = (data) => post("admin/dept/del", data);
export const getCompany = (data) => post("admin/dept/set_dept_info", data);
export const companyList = (data) => post("admin/dept/get_company_list", data);
//number_admin
export const adminList = (data) => post("admin/user/list", data);
export const adminAdd = (data) => post("admin/user/add", data);
export const adminEdit = (data) => post("admin/user/edit", data);
export const adminDelete = (data) => post("admin/user/del", data);
export const adminResetPwd = (data) => post("admin/user/reset", data);
export const adminRole = (data) => post("admin/user/setRole", data);
export const adminfreeze = (data) => post("admin/user/freeze", data);
export const adminunfreeze = (data) => post("admin/user/unfreeze", data);
//role
export const roleList = (data) => post("admin/role/tree", data);
export const roleAdd = (data) => post("admin/role/save", data);
export const roleEdit = (data) => post("admin/role/save", data);
export const roleDelete = (data) => post("admin/role/del", data);
export const roleResource = (data) => post("admin/role/setAuth", data);
export const roleMenuDate = (data) => post("admin/admin/get_auth_menu", data);
//menu
export const menuList = (data) => post("admin/menu/list", data);
export const menuAdd = (data) => post("admin/menu/save", data);
export const menuEdit = (data) => post("admin/menu/save", data);
export const menuDelete = (data) => post("admin/menu/del", data);

//waybillMange
//waybill
export const waybillList = (data) =>
  post("admin/shipment/get_shipment_list", data);
export const waybillAdd = (data) => post("admin/shipment/add", data);
export const waybillEdit = (data) => post("admin/shipment/edit", data);
export const importShipment = (data) =>
  post("report/import/importing_shipment", data);
export const waybillDele = (data) => post("admin/shipment/del", data);
export const waybillPush = (data) => post("admin/shipment/shipment_push", data);

export const waybilDeptlList = (data) => post("dept/dept-list", data);
export const waybilReceiving = (data) =>
  post("task/task/receiving_task_order", data);
export const waybilTruck = (data) =>
  post("task/free_truck/get-free_truck-list", data);

// wallList
export const wallFactoryList = (data) =>
  post("admin/task/get_warehouse_task_report", data);

//way_task
export const taskList = (data) => post("admin/task/get_task_list", data);
export const withdrawTask = (data) => post("admin/task/set_abolish_task", data);
export const evaluateTask = (data) =>
  post("admin/task/set_appraise_task", data);
export const evaluateTaskDetail = (data) =>
  post("admin/task/get_appraise_task", data);
export const TaskDetail = (data) =>
  post("admin/task/get_task_detail_info", data);

//factory
//task_list
// export const taskFactoryList = data => post('admin/task/get_task_report', data);
export const taskFactoryList = (data) =>
  post("admin/task/get_plant_task_report", data);
// export const taskFactoryDetail = data => post('task/task/get_factory_task_detail', data);

//dc_settings
export const settingsList = (data) => post("task/appoint_dc/get-dc-list", data);
export const settingsDC = (data) => post("task/appoint_dc/set-dc", data);
export const settingsDelete = (data) => post("task/appoint_dc/dc-del", data);
//

export const factoryDept = (data) => post("/dept/update-factory-dept", data);

// 仓库司机
export const dcDriveList = (data) => post("/admin/driver/dc_driver_list", data);
export const dcDriverMaterialUpload = (data) =>
  post("/admin/driver/dc_driver_material_upload", data);

// 接口
export const crateMuseum = (data) => post("/crateMuseum", data);
// 仓库列表
export const getMuseumPageList = (data) => post("/getMuseumPageList", data);
export const delMuseum = (data) => get("/delMuseum", data);
export const getMuseumOne = (data) => get("/getMuseumOne", data);
export const crateReservation = (data) => post("/crateReservation", data);
//时间设置
export const crateReservationsLot = (data) =>
  post("/crateReservationsLot", data);
export const getReservationPageList = (data) =>
  post("/getReservationPageList", data);

export const getReservation = (data) => get("/getReservation", data);

export const delReservation = (data) => get("/delReservation", data);

export const queryPersonPage = (data) => get("/queryPersonPage", data);
//获取活动预约详情
export const getReservationDetail = (data) =>
  get("/getReservationDEtail", data);
//获取用户预约情况
export const getReservationDEtailByPersonId = (data) =>
  get("/getReservationDEtailByPersonId", data);
